//
//  HSPActivityModel.m
//  Icar
//
//  Created by dllo on 15/10/24.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "HSPActivityModel.h"

@implementation HSPActivityModel
- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.priceTitle forKey:@"priceTitle"];
    [aCoder encodeObject:self.serialGroupNames forKey:@"setialGroupNames"];
    [aCoder encodeObject:self.endTime forKey:@"endTime"];
    [aCoder encodeObject:self.orderCount forKey:@"orderCount"];
    [aCoder encodeObject:self.photo forKey:@"photo"];
    [aCoder encodeObject:self.brandName forKey:@"brandName"];
    [aCoder encodeObject:self.maxDiscount forKey:@"maxDiscount"];
}

#pragma mark - 解码读取

- (id)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if (self) {
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.priceTitle = [aDecoder decodeObjectForKey:@"priceTitle"];
        self.serialGroupNames = [aDecoder decodeObjectForKey:@"setialGroupNames"];
        self.endTime = [aDecoder decodeObjectForKey:@"endTime"];
        self.orderCount = [aDecoder decodeObjectForKey:@"orderCount"];
        self.photo = [aDecoder decodeObjectForKey:@"photo"];
        self.brandName = [aDecoder decodeObjectForKey:@"brandName"];
        self.maxDiscount = [aDecoder decodeObjectForKey:@"maxDiscount"];
    }
    return self;
}
@end
